// 异步修改state变量
import * as types from './mutation-type'

export const user = ({commit}, data) => {
    sessionStorage.setItem('user', JSON.stringify(data))
    commit(types.SET_USER, data)
}
